import request from '@/config/axios'

export interface RecommendSettingVO {
  id: number
  num: string
  money: string
  timeLimit: number
  buyExplain: string
  status: number
}

// 查询相亲超级推荐设置列表
export const getRecommendSettingPage = async (params) => {
  return await request.get({ url: `/blind/recommend-setting/page`, params })
}

// 查询相亲超级推荐设置详情
export const getRecommendSetting = async (id: number) => {
  return await request.get({ url: `/blind/recommend-setting/get?id=` + id })
}

// 新增相亲超级推荐设置
export const createRecommendSetting = async (data: RecommendSettingVO) => {
  return await request.post({ url: `/blind/recommend-setting/create`, data })
}

// 修改相亲超级推荐设置
export const updateRecommendSetting = async (data: RecommendSettingVO) => {
  return await request.put({ url: `/blind/recommend-setting/update`, data })
}

// 删除相亲超级推荐设置
export const deleteRecommendSetting = async (id: number) => {
  return await request.delete({ url: `/blind/recommend-setting/delete?id=` + id })
}

// 导出相亲超级推荐设置 Excel
export const exportRecommendSetting = async (params) => {
  return await request.download({ url: `/blind/recommend-setting/export-excel`, params })
}
